package com.shiguiwu.springmybatis.javabase.file;

import java.io.IOException;
import java.nio.file.Files;
import java.nio.file.Path;
import java.nio.file.Paths;

/**
 * @description: 文件操作
 * @author: stone
 * @date: Created by 2021/8/24 20:19
 * @version: 1.0.0
 * @pakeage: com.shiguiwu.springmybatis.file
 */
public class FileTests {

    public static void main(String[] args) throws IOException {
        Files.list(Paths.get("F:\\project"))   //当前目录
                .forEach(e -> {
                    Path fileName = e.getFileName();
                    System.out.println(fileName + " - ");
                });
    }
}
